For all of these procedures the return value is a standard Tcl result:
TTTTCCCCLLLL____OOOOKKKK means the expression was successfully evaluated, and TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR
means that an error occurred while evaluating the expression. If
TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR is returned then _i_n_t_e_r_p->_r_e_s_u_l_t will hold a message describing
the error. If an error occurs while executing a Tcl command embedded in
the expression then that error will be returned.
If the expression is successfully evaluated, then its value is returned
in one of four forms, depending on which procedure is invoked.
TTTTccccllll____EEEExxxxpppprrrrLLLLoooonnnngggg stores an integer value at *_l_o_n_g_P_t_r. If the expression's
actual value is a floating-point number, then it is truncated to an
integer. If the expression's actual value is a non-numeric string then
an error is returned.
TTTTccccllll____EEEExxxxpppprrrrDDDDoooouuuubbbblllleeee stores a floating-point value at *_d_o_u_b_l_e_P_t_r. If the
expression's actual value is an integer, it is converted to floating-
point. If the expression's actual value is a non-numeric string then an
error is returned.
TTTTccccllll____EEEExxxxpppprrrrBBBBoooooooolllleeeeaaaannnn stores a 0/1 integer value at *_b_o_o_l_e_a_n_P_t_r. If the
expression's actual value is an integer or floating-point number, then
TTTTccccllll____EEEExxxxpppprrrrBBBBoooooooolllleeeeaaaannnn stores 0 at *_b_o_o_l_e_a_n_P_t_r if the value was zero and 1
otherwise. If the expression's actual value is a non-numeric string then|
it must be one of the values accepted by TTTTccccllll____GGGGeeeettttBBBBoooooooolllleeeeaaaannnn, such as ``yes'' |
or ``no'', or else an error occurs.
TTTTccccllll____EEEExxxxpppprrrrSSSSttttrrrriiiinnnngggg returns the value of the expression as a string stored in
_i_n_t_e_r_p->_r_e_s_u_l_t. If the expression's actual value is an integer then |
TTTTccccllll____EEEExxxxpppprrrrSSSSttttrrrriiiinnnngggg converts it to a string using sssspppprrrriiiinnnnttttffff with a ``%d'' |
converter. If the expression's actual value is a floating-point number, |
then TTTTccccllll____EEEExxxxpppprrrrSSSSttttrrrriiiinnnngggg calls TTTTccccllll____PPPPrrrriiiinnnnttttDDDDoooouuuubbbblllleeee to convert it to a string.